<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>12-底部半透明遮罩效果</title>
		<style type="text/css">
			*{
				margin:0;
				padding:0;
			}
			.box{
		/* 		width:1226px;
				height:600px; */
				
			}
			.box a{
				margin:30px auto;
				width:1226px;
				height:600px;
				display: block;
				border:1px solid red;
				position: relative;
			}
			.box .tips{
				height:150px;
				background: rgba(0,0,0,.3);
				position: absolute;
				left: 0;
				bottom: 0;
				width: 100%;
			}
			/* 子绝父相 */
			
		</style>
	</head>
	<body>
		<div class="box">
			<a href="">
				<img src="images/bg.jpg" alt="">
				<div class="tips"></div>
			</a>
		</div>
	</body>
</html>
